class Ticket < ActiveRecord::Base
  belongs_to :dev_project
  belongs_to :status

  validates :TypTic,
            :presence => {:message => "Du måste ange en ticket"},
            :length => {:minimum => 3, :message => "Du måste ange minst tre tecken"}
  validates :start,
             :presence => {:message => "Du måste ange ett ticket"},
            :length => {:minimum => 3, :message => "Du måste ange minst tre tecken"}
  validates :stop,
            :presence => {:message => "Du måste ange ett ticket"},
            :length => {:minimum => 3, :message => "Du måste ange minst tre tecken"}
end

